package org.yzh.scheduler.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.sample.model.PageInfo;
import org.springframework.stereotype.Repository;
import org.yzh.scheduler.model.entity.JobLogDO;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
@Repository
public interface JobLogMapper {

    List<JobLogDO> find(@Param("name") String name, @Param("group") String group,
                        @Param("startTime") LocalDateTime startTime, @Param("endTime") LocalDateTime endTime,
                        @Param("pageInfo") PageInfo pageInfo);

    JobLogDO get(int id);

    JobLogDO getLately(@Param("name") String name, @Param("group") String group);

    int insertSelective(JobLogDO record);

    int updateSelective(JobLogDO record);

    int delete(int id);
}